import request from '../utils/request';
//生产开单业务接口文档
const api = {
  //选择业务订单后自动创建生产任务单
  AutoCreateProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/AutoCreateProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-列表
  GetMatchPageProduceTaskBills(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageProduceTaskBills',
      method: 'post',
      data,
    });
  },
  //生产单-撤回生产任务单
  RevocationProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RevocationProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-更新生产开单打印状态
  UpdateProduceNoticeBillDownloaded(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateProduceNoticeBillDownloaded',
      method: 'post',
      data,
    });
  },
  //生产单-确认
  SureProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/SureProduceTaskBill',
      method: 'post',
      data,
    });
  },
  // 生产单-根据老生产单复制创建新的生产任务单
  CopyCreateProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CopyCreateProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-作废
  ScrapProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/ScrapProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-状态已改为生产中
  RevokeFinishedProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RevokeFinishedProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-状态已改为完工
  FinishedProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/FinishedProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-状态已改为停工
  StopProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/StopProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //生产单-获取生产任务单明细数据
  GetProduceTaskBillDetail(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetProduceTaskBillDetail',
      method: 'post',
      data,
    });
  },
  //确认勾选工艺数据
  SureChooseProduceCraftEquipmentMaps(data?: any) {
    return request({
      url: '/api/ProductionBusniess/SureChooseProduceCraftEquipmentMaps',
      method: 'post',
      data,
    });
  },
  //执行修改生产任务单
  ExcuteUpdateProduceTaskBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/ExcuteUpdateProduceTaskBill',
      method: 'post',
      data,
    });
  },
  //最新生产看板接口-修改生产工艺任务状态
  UpdateProduceCraftTaskState(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateProduceCraftTaskState',
      method: 'post',
      data,
    });
  },
  //分页获取刀版数据
  GetPageKnifeVersionList(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetPageKnifeVersionList',
      method: 'post',
      data,
    });
  },
  //获取单条刀版数据
  GetSingleKnifeVersionView(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetSingleKnifeVersionView',
      method: 'post',
      data,
    });
  },
  //创建刀版
  CreateKnifeVersion(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CreateKnifeVersion',
      method: 'post',
      data,
    });
  },
  //修改刀版信息
  UpdateKnifeVersion(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateKnifeVersion',
      method: 'post',
      data,
    });
  },
  //删除刀版
  DeleteKnifeVersion(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DeleteKnifeVersion',
      method: 'post',
      data,
    });
  },
  //修改刀版状态或启用状态
  UpdateKnifeVersionState(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateKnifeVersionState',
      method: 'post',
      data,
    });
  },
  //导入刀版数据
  ImportKnifeVersion(data?: any) {
    return request({
      url: '/api/ProductionBusniess/ImportKnifeVersion',
      method: 'post',
      data,
    });
  },
  //批量获取生产任务单配置的物料清单
  GetMoreProduceTaskMaterialList(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMoreProduceTaskMaterialList',
      method: 'post',
      data,
    });
  },
  //批量领料（新）
  BatchCreateGetProduceMaterialBills(data?: any) {
    return request({
      url: '/api/ProductionBusniess/BatchCreateGetProduceMaterialBills',
      method: 'post',
      data,
    });
  },
  //分页获取数据生产单数据
  GetPageDataProduceBillDataList(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetPageDataProduceBillDataList',
      method: 'post',
      data,
    });
  },
  //获取数据生产单详情数据
  GetDataProduceBillDetail(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetDataProduceBillDetail',
      method: 'post',
      data,
    });
  },
  //新建数据生产单
  CreateDataProduceBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CreateDataProduceBill',
      method: 'post',
      data,
    });
  },
  //修改数据生产单
  UpdateDataProduceBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateDataProduceBill',
      method: 'post',
      data,
    });
  },
  //删除数据生产单
  DeleteDataProduceBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DeleteDataProduceBill',
      method: 'post',
      data,
    });
  },
  //完成数据生产单
  FinishedDataProduceBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/FinishedDataProduceBill',
      method: 'post',
      data,
    });
  },
  //分页获取生产领料单列表数据
  GetMatchPageProduceMaterialBills(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageProduceMaterialBills',
      method: 'post',
      data,
    });
  },
  //获取生产领料单明细数据
  GetProduceMaterialBillDetail(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetProduceMaterialBillDetail',
      method: 'post',
      data,
    });
  },
  //新建生产领料单
  CreateGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CreateGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //修改生产领料单
  UpdateGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //删除生产领料单
  DeleteGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DeleteGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //确认生产领料单
  SureGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/SureGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //生产领料单作废
  CancelGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CancelGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //撤回生产领料单（by 生产领料单号）
  RevokeGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RevokeGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //拒绝生产领料单出库
  RefuseGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RefuseGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //完成生产领料单出库
  FinishedGetProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/FinishedGetProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //分页获取匹配的无单据报工单
  GetMatchPageProduceNoTaskWorkBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageProduceNoTaskWorkBill',
      method: 'post',
      data,
    });
  },
  //创建无单据报工单
  AddProduceNoTaskWorkBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/AddProduceNoTaskWorkBill',
      method: 'post',
      data,
    });
  },
  //修改无单据报工单
  UpdateProduceNoTaskWorkBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateProduceNoTaskWorkBill',
      method: 'post',
      data,
    });
  },
  //作废无单据报工单
  DisableProduceNoTaskWorkBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DisableProduceNoTaskWorkBill',
      method: 'post',
      data,
    });
  },
  //分页获取生产退料单列表数据
  GetMatchPageBackProduceMaterialBills(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchPageBackProduceMaterialBills',
      method: 'post',
      data,
    });
  },
  //新建生产退料单
  CreateBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CreateBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //修改生产退料单
  UpdateBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //删除生产退料单
  DeleteBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DeleteBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //撤回生产退料单
  RevokeBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RevokeBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //确认生产退料单
  SureBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/SureBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //作废生产退料单
  CancelBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CancelBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //拒绝生产退料单
  RefuseBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RefuseBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //完成生产退料单
  FinishedBackProduceMaterialBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/FinishedBackProduceMaterialBill',
      method: 'post',
      data,
    });
  },
  //获取生产退料单明细数据【单个退料单】
  GetBackProduceMaterialBillDetail(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetBackProduceMaterialBillDetail',
      method: 'post',
      data,
    });
  },
  //分页获得匹配的生产作业任务
  GetPageProduceCraftWorkTasksForSacnningWork(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetPageProduceCraftWorkTasksForSacnningWork',
      method: 'post',
      data,
    });
  },
  //最新生产看板接口-根据生产作业code获取指定生产作业详情
  GetProduceCraftWorkTaskDetailByCode(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetProduceCraftWorkTaskDetailByCode',
      method: 'post',
      data,
    });
  },
  //最新生产看板接口-根据生产作业code获取指定生产作业详情
  DisableProduceCraftWorkTask(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DisableProduceCraftWorkTask',
      method: 'post',
      data,
    });
  },
  //最新生产看板接口-修改生产工艺作业
  UpdateProduceCraftWorkTask(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateProduceCraftWorkTask',
      method: 'post',
      data,
    });
  },
  //分页获取生产缴库单列表数据
  GetPageProductHandInBills(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetPageProductHandInBills',
      method: 'post',
      data,
    });
  },
  //获取某个订单的所有生产缴库单列表数据
  GetProductHandInBillsForOrder(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetProductHandInBillsForOrder',
      method: 'post',
      data,
    });
  },
  //获取匹配的生产缴库单列表数据【仓库使用】
  GetMatchProductHandInBillsByStock(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProductHandInBillsByStock',
      method: 'post',
      data,
    });
  },
  //获取匹配的生产缴库单列表数据
  GetMatchProductHandInBills(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProductHandInBills',
      method: 'post',
      data,
    });
  },
  //获取生产缴库单明细数据【单个缴库单】
  GetProductHandInBillDetail(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetProductHandInBillDetail',
      method: 'post',
      data,
    });
  },
  //获取产品包装规格列表数据
  GetMatchProductPackageGuiGeList(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetMatchProductPackageGuiGeList',
      method: 'post',
      data,
    });
  },
  //新建产品包装规格
  CreateProductPackageGuiGe(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CreateProductPackageGuiGe',
      method: 'post',
      data,
    });
  },
  //删除产品包装规格
  DeleteProductPackageGuiGe(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DeleteProductPackageGuiGe',
      method: 'post',
      data,
    });
  },
  //新建生产缴库单
  CreateProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CreateProductHandInBill',
      method: 'post',
      data,
    });
  },
  //修改生产缴库单
  UpdateProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/UpdateProductHandInBill',
      method: 'post',
      data,
    });
  },
  //删除生产缴库单
  DeleteProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/DeleteProductHandInBill',
      method: 'post',
      data,
    });
  },
  //确认生产缴库单
  SureProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/SureProductHandInBill',
      method: 'post',
      data,
    });
  },
  //撤回生产缴库单
  RevokeProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RevokeProductHandInBill',
      method: 'post',
      data,
    });
  },
  //作废生产缴库单
  CancelProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/CancelProductHandInBill',
      method: 'post',
      data,
    });
  },
  //拒绝生产缴库单
  RefuseProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/RefuseProductHandInBill',
      method: 'post',
      data,
    });
  },
  //完成生产缴库单
  FinishedProductHandInBill(data?: any) {
    return request({
      url: '/api/ProductionBusniess/FinishedProductHandInBill',
      method: 'post',
      data,
    });
  },
  //根据业务订单号获取订单产品的包装信息
  GetOrderProductPackageInfoByOrderNo(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetOrderProductPackageInfoByOrderNo',
      method: 'post',
      data,
    });
  },
  //获取某个缴库单的装箱单数据【打印装箱单】
  GetProduceHandInBillsZxBoxBillList(data?: any) {
    return request({
      url: '/api/ProductionBusniess/GetProduceHandInBillsZxBoxBillList',
      method: 'post',
      data,
    });
  },
};
export default api;
